:root {
  --primary-color: #1890ff;
  --primary-light: #e6f7ff;
  --secondary-color: #52c41a;
  --text-primary: #333333;
  --text-secondary: #666666;
  --background-light: #f5f9ff;
  --border-color: #e8f4ff;
  --success-color: #52c41a;
  --warning-color: #faad14;
}

.appqw {
  padding: 1.5rem 1rem;
  background-color: var(--background-light);
  min-height: 100vh;
  max-width: 750px;
  margin: 0 auto;
}

.appqw h1 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.appqw h1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.patients {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

.patient {
  display: flex;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.patient:last-child {
  border-bottom: none;
}

.patient:hover {
  background-color: var(--primary-light);
  transform: translateX(4px);
}

.avatar {
  margin-right: 1.2rem;
  position: relative;
}

.avatar img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
  transition: transform 0.3s;
  object-fit: cover;
}

.patient:hover .avatar img {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.info {
  flex: 1;
}

.info h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
}

.info p {
  color: var(--text-secondary);
  margin: 0.3rem 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.info p:last-child {
  color: #999;
  font-size: 1.1rem;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.category {
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
  border-color: var(--primary-color);
}

.category span:first-child {
  color: var(--text-primary);
  font-size: 1.4rem;
}

.category span:last-child {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 500;
}

/* 添加医疗相关的图标样式 */
.patient-type {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-left: 1rem;
}

.patient-type.vip {
  background-color: #fff7e6;
  color: #fa8c16;
}

.patient-type.urgent {
  background-color: #fff1f0;
  color: #f5222d;
}

.patient-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-active {
  background-color: var(--success-color);
}

.status-waiting {
  background-color: var(--warning-color);
}

/* 响应式优化 */
@media screen and (max-width: 480px) {
  .appqw {
    padding: 1rem;
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .patient {
    padding: 1rem;
  }

  .info h2 {
    font-size: 1.4rem;
  }

  .info p {
    font-size: 1.1rem;
  }

  .category {
    padding: 1rem;
  }

  .category span:first-child {
    font-size: 1.2rem;
  }
}